<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
	<title>Editar Refrigeradores</title>
</h:head>
<h:body>

	<h:form>
		<p:growl id="messages" />

		<p:menubar>

			<p:submenu label="Cadastro" url="index.jsf" icon="ui-icon-contact">
				<p:menuitem value="Refrigeradores" url="listar_Refrigerador.jsf" />
				<p:menuitem value="Grupo de Defeitos" url="listar_GrupoDefeito.jsf" />
				<p:menuitem value="Setor" url="listar_Setor.jsf" />

			</p:submenu>

			<p:submenu label="Relatório" icon="ui-icon-pencil">
				<p:menuitem value="Gráfico" url="#" />
				<p:menuitem value="Exportar" url="#" />
			</p:submenu>

			<p:submenu label="Ajuda" icon="ui-icon-help">
				<p:menuitem value="Manual" url="#" />
				<p:menuitem value="Sobre o Projeto QI"
					url="http://www.weysolucoes.com.br/servicos.php" />
			</p:submenu>

			<f:facet name="options">
				<p:commandButton type="button" value="Sair" icon="ui-icon-extlink" />
			</f:facet>
		</p:menubar>
	</h:form>

	<h:form>
		<p:messages id="messages" />
		<p:panelGrid columns="2">

			<p:outputLabel for="id" value="ID:" />
			<p:inputText id="id"
				value="#{RefrigeradorMB.refrigerador.refrigeradorId}"
				readonly="false" />

			<p:outputLabel for="modelo" value="Modelo:" />
			<p:inputText id="modelo"
				value="#{RefrigeradorMB.refrigerador.modeloRefrigerador}" />

			<p:outputLabel for="descricao" value="Descrição:" />
			<p:inputText id="descricao"
				value="#{RefrigeradorMB.refrigerador.descricaoRefrigerador}" />

			<p:outputLabel for="familia" value="Família:" />
			<p:inputTextarea id="familia"
				value="#{RefrigeradorMB.refrigerador.familiaRefrigerador}" />

			<p:commandButton value="Salvar" icon="ui-icon-star"
				action="#{RefrigeradorMB.editarRefrigerador}" update="messages">
			</p:commandButton>
			<p:commandButton value="Cancelar" icon="ui-icon-star"
				action="listar_Refrigerador" update="messages">
			</p:commandButton>
		</p:panelGrid>
	</h:form>




</h:body>

</html>